#include <stdio.h>

int main() {
  int rg[30];
  for (int i = 0; i < 30; ++i) rg[i] = i + 2;
  for (int i = 1; i < 100000; ++i) {
    int hit = 0;
    int hit1 = -1;
    int hit2 = -1;
    for (int j = 0; j < 30; ++j) {
      if ((i % rg[j]) != 0) {
        ++hit;
        if (hit == 1) hit1 = j;
        else if (hit == 2) hit2 = j;
        else break;
      }
    }
    if (hit == 2 && (hit1 + 1 == hit2)) {
      printf("found: %d\n", i);
    }
  }
  return 0;
}
